﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

// Google code password = uF3GB7ej2Ax8

/// <summary>
/// Summary description for Resources
/// </summary>
public class Resources
{
    private Dictionary<string, DescriptionPopup> descriptionPopups;

    /// <summary>
    /// Resources constructor
    /// </summary>
	public Resources()
	{
        this.descriptionPopups = new Dictionary<string, DescriptionPopup>();

        fillDescriptionPopups();
	}

    /// <summary>
    /// Fill default popups
    /// </summary>
    private void fillDescriptionPopups()
    {
        DescriptionPopup popup = null;
        
        // BMI
        popup = new DescriptionPopup(
            "What does my BMI mean?",
            @"Body Mass Index (BMI) is a number calculated from a child's weight and height.  BMI is a reliable indicator of body fatness for most children and teens. BMI does not measure body fat directly, but research has shown that BMI correlates to direct measures of body fat, such as underwater weighing and dual energy x-ray absorptiometry (DXA).1 BMI can be considered an alternative for direct measures of body fat. Additionally, BMI is an inexpensive and easy-to-perform method of screening for weight categories that may lead to health problems.  For children and teens, BMI is age- and sex-specific and is often referred to as BMI-for-age.
            (Information on behalf of CDC.gov)"
            );
        this.descriptionPopups.Add("BMI", popup);

        // Waist
        popup = new DescriptionPopup(
            "How do I measure waist circumference?",
            @"To measure your waist circumference, use a tape measure. Start at the top of the hip bone, then bring it all the way around, level with your navel. Make sure it's not too tight and that it is parallel with the floor.  Make sure not to hold your breath while measuring."
            );
        this.descriptionPopups.Add("Waist", popup);

        // Blood Pressure
        popup = new DescriptionPopup(
            "What if I don't know my blood pressure?",
            @"It is important to know your blood pressure... et cetera."
            );
        this.descriptionPopups.Add("BloodPressure", popup);
    }

    public Dictionary<string, DescriptionPopup> getPopups()
    {
        return this.descriptionPopups;
    }

    public Dictionary<string, DescriptionPopup> HelpMessages
    {
        get { return this.descriptionPopups; }
    }

    
}